<?php

//require_once PATH_ROOT.'/conf/define.php';
require_once PATH_ROOT.'/library/framework/lfCollection.php';
require_once PATH_ROOT.'/library/framework/mvc/lfApplication.php';
require_once PATH_ROOT.'/library/framework/mvc/lfController.php';
require_once PATH_ROOT.'/library/framework/mvc/lfView.php';


/**
 * 动态载入文件
 *
 * @param string $name
 */
function __autoload($name)
{
	
	if ($name == "lfDAO")
	{
		require_once PATH_ROOT.'/library/framework/data/lfMySQL.php';
		require_once PATH_ROOT.'/library/framework/data/lfRecordSet.php';
		require_once PATH_ROOT.'/library/framework/data/lfDAO.php';
	}
	else
	{
		
		$appName = lfApplication::GetInstance()->APP_NAME();
		$file = PATH_ROOT.'/applications/'.$appName.'/libs/'.$name.'.php';
		if (is_file($file))
			require_once $file;
	}
	
}


?>